package com.java.interview.i设计模式.代理模式;

/**
 * @Description:
 * @Auther: sixbing  QQ:414409451
 * @Date: 2018/11/4 13:18
 */
public class Test {
    public static void main(String[] args) {
        IMath math = (IMath) new DynamicProxy().getProxyObject(new Math());
        int n1 = 100, n2 = 5;
        math.add(n1, n2);
        math.sub(n1, n2);
        math.mut(n1, n2);
        math.div(n1, n2);
    }
}
